package com.ruoyi.settled.mapper;

import com.ruoyi.settled.domain.AgreementRule;

import java.util.List;

/**
 * 协议规则Mapper接口
 * 
 * @author ruoyi
 * @date 2024-12-30
 */
public interface AgreementRuleMapper 
{
    /**
     * 查询协议规则
     * 
     * @param ruleCode 协议规则主键
     * @return 协议规则
     */
    public AgreementRule selectAgreementRuleByRuleCode(String ruleCode);

    /**
     * 查询协议规则列表
     * 
     * @param agreementRule 协议规则
     * @return 协议规则集合
     */
    public List<AgreementRule> selectAgreementRuleList(AgreementRule agreementRule);

    /**
     * 新增协议规则
     * 
     * @param agreementRule 协议规则
     * @return 结果
     */
    public int insertAgreementRule(AgreementRule agreementRule);

    /**
     * 修改协议规则
     * 
     * @param agreementRule 协议规则
     * @return 结果
     */
    public int updateAgreementRule(AgreementRule agreementRule);

    /**
     * 删除协议规则
     * 
     * @param ruleCode 协议规则主键
     * @return 结果
     */
    public int deleteAgreementRuleByRuleCode(String ruleCode);

    /**
     * 批量删除协议规则
     * 
     * @param ruleCodes 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAgreementRuleByRuleCodes(String[] ruleCodes);

    /**
     * 根据协议编号查询协议规则
     *
     * @param agreementCode 协议编号
     * @return 协议规则集合
     */
    public AgreementRule selectAgreementRuleByAgreementCode(String agreementCode);
}
